<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Market Place</title>
</head>
<body>
<table width="100%">
<%@ include file="/header.jsp" %>

<tr valign="top"><td align="center" height="300px">
<table width="100%">

<tr valign="top" height="50px">
<td align="center">
<%@ include file="/headerLinks.jsp" %>
</td>
</tr>
<tr><td align="center" height="40px" colspan="2" valign="top"><h3>Add Advertisement</h3></td></tr>
<% if(request.getAttribute("message") != null) { %>
<tr><td align="center" style="color:red"><%= request.getAttribute("message") %></td></tr>
<% } %>
<form name="addAdvertisement" action="addAdvertisement" method="post">

<tr><td align="center">
<table>
<tr>
<td>Item Name: </td><td><input type="text" name="itemName" value="<%=request.getParameter("itemName")!=null?request.getParameter("itemName"):"" %>"></td>
<tr>

<tr>
<td>Item Description:</td><td> <input type="text" name="itemDescription" value="<%=request.getParameter("itemDescription")!=null?request.getParameter("itemDescription"):"" %>"></td>
</tr>
<tr>
<td>Item Price: </td><td><input type="text" name="itemPrice" value="<%=request.getParameter("itemPrice")!=null?request.getParameter("itemPrice"):"" %>"></td>
</tr>
<tr>
<td>Item Quantity: </td><td><input type="text" name="itemQuantity" value="<%=request.getParameter("itemQuantity")!=null?request.getParameter("itemQuantity"):"" %>"></td>
</tr>
<tr>
<td>Seller Information: </td><td><input type="text" name="sellerInfo" value="<%=request.getParameter("sellerInfo")!=null?request.getParameter("sellerInfo"):"" %>"></td>
</tr>
<tr>
<td colspan="2" height="10px">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" name="submit" value="Add Advertisement">
</td>
</tr>
</form>

</table>
</td>
</tr> 	
</table>
</td>
</tr>
<%@ include file="/bottom.html" %>
</table>
</body>
</html>